import { Switch } from "vant";
export default {
  name: "sceneListDetail",
  props: {
    detailObj: {
      type: Object,
      default() {
        return {};
      },
    },
  },
  components: {
    [Switch.name]: Switch,
  },
  watch: {},
  data() {
    return {
      checked: true,
    };
  },
  components: {},
  created() {},
  mounted() {},
  computed: {},
  methods: {
    // 开关监听
    changeFn() {
      let text = "";
      if (this.detailObj.status == true) {
        text = "start";
      } else if (this.detailObj.status == false) {
        text = "stop";
      }
      this.$emit("switchEmit", { value: text, id: this.detailObj.ruleId });
    },
  },
};
